<?php


namespace app\controllers;


use app\models\request\ReqActListPage;
use app\models\request\ReqDetail;
use app\models\request\ReqId;
use app\models\UserDto;
use app\service\MsgService;

class MyMsgController extends BaseJsonController
{

    /**

     * @param $userInfo UserDto
     * @return \app\models\response\RespLogin|mixed
     * @throws \app\exception\OaException
     */
    public function doService($req,$userInfo)
    {
        $service = new MsgService();
        return $service->count($userInfo->getUserId());
    }


    protected function injectionReq()
    {

    }

    public function needLogin(){
        return true;
    }
}